﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="New.aspx.cs" Inherits="MVCClubSite.Web.Views.Links.New" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<div class="contentblock">
        <h2>
            Create New Link</h2>
        <% using (Html.BeginForm("Create", "Links", null, FormMethod.Post))
           { %>
        <table>
            <tr>
                <td>
                    <%= Html.Label("title", "Title:") %>
                </td>
                <td>
                    <%= Html.TextBox("title") %>
                </td>
            </tr>
            <tr>
                <td>
                    <%= Html.Label("url", "Url:") %>
                </td>
                <td>
                    <%= Html.TextBox("url") %>
                </td>
            </tr>
            <tr>
                <td>
                    <%= Html.Label("description", "Description:") %>
                </td>
                <td>
                    <%= Html.TextArea("description", "", 4, 30, null)  %>
                </td>
            </tr>
            <tr>
                <td>
                    <%= Html.Label("image", "Image:") %>
                </td>
                <td>
                    <input type="file" name="image" id="image" size="40" />
                </td>
            </tr>
            <tr>
                <td>
                    <%= Html.Label("sequence", "Sequence") %>
                </td>
                <td>
                    <%= Html.TextBox("sequence") %>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <input type="submit" name="submit" value="Save" />
                </td>
            </tr>
        </table>
        <% } %>
    </div>

    <script type="text/javascript" src="<%=AppHelper.JavascriptUrl("tinymce/tiny_mce.js") %>"></script>

    <script type="text/javascript" src="<%=AppHelper.JavascriptUrl("tinymce/advanced_config.js") %>"></script>

</asp:Content>
